package com.cryptoneedle.garden.repository.garden.config;


import com.bubbles.engine.data.core.repository.BaseRepository;
import com.cryptoneedle.garden.entity.garden.config.ConfigProperty;
import org.springframework.data.jpa.repository.Query;
import org.springframework.stereotype.Repository;

/**
 * <p>description: 配置属性 </p>
 *
 * @author CryptoNeedle
 * @date 2025-09-25
 */
@Repository
public interface ConfigPropertyRepository extends BaseRepository<ConfigProperty, String> {

    @Query("SELECT value FROM ConfigProperty WHERE name = :name")
    String value(String name);

    @Query("FROM ConfigProperty WHERE name = :name")
    ConfigProperty property(String name);
}